package com.controller;

import com.mapper.BranchMapper;
import com.pojo.Branch;
import com.service.BranchService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/sys/branch")
public class BranchHandler {
    @Resource
    private BranchService branchService;
    @RequestMapping("/searchByBranch")
    public Branch searchByBranch(String id){
        return branchService.searchByBranch(id);
    }
}
